package com.bigmi.article;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
//集成当前注册中心
@EnableDiscoveryClient
@MapperScan("com.bigmi.article.mapper")
@Slf4j
public class ArticleApplication {
    public static void main(String[] args) {
        SpringApplication.run(ArticleApplication.class,args);
        log.info("文章服务已启动");
    }
}
